﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Scrollpics.ascx.cs"
    Inherits="BtoBSWT315.Ascx.Scrollpics" %>
<link href="../StyleSheet1.css" type="text/css" rel="stylesheet">
<!-- 图片滚动 -->
<script language="javascript" type="text/javascript">
    var nn;
    nn = 2;
    setTimeout('change_img()', 4000);
    function change_img() {
        if (nn > 5) nn = 1
        setTimeout('setFocus1(' + nn + ')', 4000);
        nn++;
        tt = setTimeout('change_img()', 4000);
    }
    function setFocus1(i) {
        selectLayer1(i);
    }
    function selectLayer1(i) {
        switch (i) {
            case 1:
                document.getElementById("focusPic1").style.display = "block";
                document.getElementById("focusPic2").style.display = "none";
                document.getElementById("focusPic3").style.display = "none";
                document.getElementById("focusPic4").style.display = "none";
                document.getElementById("focusPic5").style.display = "none";
                break;
            case 2:
                document.getElementById("focusPic1").style.display = "none";
                document.getElementById("focusPic2").style.display = "block";
                document.getElementById("focusPic3").style.display = "none";
                document.getElementById("focusPic4").style.display = "none";
                document.getElementById("focusPic5").style.display = "none";
                break;
            case 3:
                document.getElementById("focusPic1").style.display = "none";
                document.getElementById("focusPic2").style.display = "none";
                document.getElementById("focusPic3").style.display = "block";
                document.getElementById("focusPic4").style.display = "none";
                document.getElementById("focusPic5").style.display = "none";
                break;
            case 4:
                document.getElementById("focusPic1").style.display = "none";
                document.getElementById("focusPic2").style.display = "none";
                document.getElementById("focusPic3").style.display = "none";
                document.getElementById("focusPic4").style.display = "block";
                document.getElementById("focusPic5").style.display = "none";
                break;
            case 5:
                document.getElementById("focusPic1").style.display = "none";
                document.getElementById("focusPic2").style.display = "none";
                document.getElementById("focusPic3").style.display = "none";
                document.getElementById("focusPic4").style.display = "none";
                document.getElementById("focusPic5").style.display = "block";
                break;
        }
    }
</script>
<table id="Table1" cellspacing="0" cellpadding="5" width="260" align="center" border="0"
    bgcolor="#f8f8f8">
    <tr>
        <td style="position: relative" valign="top" width="260">
            <table style="border-right: #9ec9eb 1px solid; border-top: #9ec9eb 1px solid; border-left: #9ec9eb 1px solid;
                border-bottom: #9ec9eb 1px solid" width="260">
                <tr>
                    <td>
                        <div id="ImgChangeMain">
                            <div id="focusPic1" style="display: block">
                                <a href='http://cao364907421.cn.alibaba.com/?asker=ATC' target="_blank">
                                    <%--<asp:Image ID="Image1" Height=190 Width=260 runat="server" BorderWidth="1" BorderColor="#808080" ImageUrl='<%=url1%>' /> --%>
                                    <img height="190" src="../Ad_Images/TopNews/1.png" width="260" border="0">
                                </a>
                                <table style="clear: both; margin: auto" cellspacing="1" cellpadding="0" width="100%"
                                    align="right" border="0">
                                    <tbody>
                                        <tr align="center" bgcolor="#9ec9ec">
                                            <td bgcolor="#e2eaf7">
                                                &nbsp;
                                            </td>
                                            <td style="color: #ffffff" width="26" bgcolor="#0049a5">
                                                1
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(2)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                2
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(3)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                3
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(4)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                4
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(5)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                5
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="ImgChange1" id="focusPic2" style="display: none">
                                <a href="http://www.333hl.com/" id="topid2" target="_blank">
                                    <img height="190" src="../Ad_Images/TopNews/2.jpg" width="260" border="0"></a>
                                <table style="clear: both; margin: auto" cellspacing="1" cellpadding="0" width="100%"
                                    align="right" border="0">
                                    <tbody>
                                        <tr align="center" bgcolor="#9ec9ec">
                                            <td bgcolor="#e2eaf7">
                                                &nbsp;
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(1)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                1
                                            </td>
                                            <td style="color: #ffffff" width="26" bgcolor="#0049a5">
                                                2
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(3)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                3
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(4)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                4
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(5)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                5
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="ImgChange1" id="focusPic3" style="display: none">
                                <a href="http://www.apxwwy.com/cn/index.asp" target="_blank">
                                    <img height="190" src="../Ad_Images/TopNews/3.gif" width="260" border="0"></a>
                                <table style="clear: both; margin: auto" cellspacing="1" cellpadding="0" width="100%"
                                    align="right" border="0">
                                    <tbody>
                                        <tr align="center" bgcolor="#9ec9ec">
                                            <td bgcolor="#e2eaf7">
                                                &nbsp;
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(1)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                1
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(2)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                2
                                            </td>
                                            <td style="color: #ffffff" width="26" bgcolor="#0049a5">
                                                3
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(4)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                4
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(5)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                5
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="ImgChange1" id="focusPic4" style="display: none">
                                <a href="http://www.df-wiremesh.cn/" target="_blank">
                                    <img height="190" src="../Ad_Images/TopNews/4.jpg" width="260" border="0"></a>
                                <table style="clear: both; margin: auto" cellspacing="1" cellpadding="0" width="100%"
                                    align="right" border="0">
                                    <tbody>
                                        <tr align="center" bgcolor="#9ec9ec">
                                            <td bgcolor="#e2eaf7">
                                                &nbsp;
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(1)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                1
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(2)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                2
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(3)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                3
                                            </td>
                                            <td style="color: #ffffff" width="26" bgcolor="#0049a5">
                                                4
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(5)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                5
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="ImgChange1" id="focusPic5" style="display: none">
                                <a href="http://www.apjianying.com/" target="_blank">
                                    <img height="190" src="../Ad_Images/TopNews/5.jpg" width="260" border="0"></a>
                                <table style="clear: both; margin: auto" cellspacing="1" cellpadding="0" width="100%"
                                    align="right" border="0">
                                    <tbody>
                                        <tr align="center" bgcolor="#9ec9ec">
                                            <td bgcolor="#e2eaf7">
                                                &nbsp;
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(1)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                1
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(2)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                2
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(3)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                3
                                            </td>
                                            <td onmouseover="this.style.color='#FFFFFF';this.style.backgroundColor='#0049A5'"
                                                style="cursor: pointer" onclick="javascript:setFocus1(4)" onmouseout="this.style.color='#004AA7';this.style.backgroundColor='#9EC9EC'"
                                                width="26" bgcolor="#9ec9ec">
                                                4
                                            </td>
                                            <td style="color: #ffffff" width="26" bgcolor="#0049a5">
                                                5
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <!--ImgChangeMain End-->
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
